import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '../components/HelloWorld'
import Config from '../components/Config'
import EchartsTest from '../components/EchartsTest'
import EchartsTest1 from '../components/EchartsTest1'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'menu',
      component: HelloWorld,
      children: [
        {
          path: 'config',
          name: 'config',
          component: Config
        },
        {
          path: 'echarts',
          name: 'echarts',
          component: EchartsTest
        },
        {
          path: 'e1',
          name: 'e1',
          component: EchartsTest1
        }
      ]
    }
  ]
})
